package com.bgrconsulting.stockorderentry.service.converter;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

import com.bgrconsulting.stockorderentry.service.model.LegDetails;
import com.bgrconsulting.stockorderentry.service.model.SymbolInfo;

@XmlRootElement(name = "LegDetails")
public class LegDetailsConverter {

	private LegDetails enity;

	public LegDetailsConverter(LegDetails legDetails) {
		enity = legDetails;
	}

	
	public LegDetailsConverter() {
		enity = new LegDetails();
	}

	@XmlElement(name = "legNumber")
	public int getLegNumber() {
		return enity.getLegNumber();
	}

	@XmlElement(name = "symbolInfo")
	public SymbolInfoConverter getSymbolInfo() {
		return new SymbolInfoConverter(enity.getSymbolInfo());
	}

	@XmlElement(name = "symbolDescription")
	public String getSymbolDescription() {
		return enity.getSymbolDescription();
	}

	@XmlElement(name = "orderAction")
	public String getOrderAction() {
		return enity.getOrderAction();
	}

	@XmlElement(name = "orderQuanity")
	public int getOrderQuanity() {
		return enity.getOrderQuanity();
	}

	@XmlElement(name = "filledQuanity")
	public int getFilledQuanity() {
		return enity.getFilledQuanity();
	}

	@XmlElement(name = "excutePrice")
	public Double getExecutePrice() {
		return enity.getExecutePrice();
	}

	@XmlElement(name = "estimatedCommision")
	public Double getEstimatedCommision() {
		return enity.getEstimatedCommision();
	}

	@XmlElement(name = "estimatedFees")
	public Double getEstimatedFees() {
		return enity.getEstimatedFees();
	}
}
